/**
 * 作者: Admilk
 * 如有问题直接删除
 */
import plugin from '../../lib/plugins/plugin.js'
import common from '../../lib/common/common.js';
export class helpMaster extends plugin {
  constructor() {
    super({
      name: 'help',
      dsc: 'unban',
      event: 'notice.group.ban',
      priority: -1,
      rule: [
        {
          /** 命令正则匹配 */
          fnc: 'help'
        }
      ]
    }
    )
  }

  async help(e) {
    if (!e.isMaster) return false
    if ((e.group.pickMember(this.e.user_id,true).is_admin && !e.group.is_owner) || (!e.bot.pickGroup(e.group_id).is_admin && !e.group.is_owner)) {
        await this.reply('主人~我救不了你啊！')
        return false
      }
    if (e.duration === 0) return false
    await e.group.muteMember(e.user_id, 0)
    e.reply('我来救你了主人！！！！！')
    return false
  }
}